<?php
	@session_start();
	include("../../connect/connect_mysql.php");
	$index= $_POST["index"];
	$ids= $_POST['ids'];
	$query ="UPDATE `image` SET `alies`= '$index' WHERE `page_id`= 10 and (`image_id` IN ($ids) OR `image_id` = $index);";
	mysql_query ("SET NAMES 'utf8'");
	mysql_query($query); 
	echo 1;
?>
